package com.itheima.UDP.组播广播;

import java.io.IOException;
import java.net.*;

public class ClientDemo {
    public static void main(String[] args) throws IOException {
        DatagramSocket ds = new DatagramSocket();
        String s="hello zubo";
        byte[]bys=s.getBytes();
        InetAddress address=InetAddress.getByName("224.0.1.0");
        int port=10000;
        DatagramPacket dp=new DatagramPacket(bys,bys.length,InetAddress.getByName("224.1.1.0"),10000);

        ds.send(dp);
        ds.close();

    }
}
